const novel = (ajaxinstance) => {
  const customer = {}

  customer.getNovel = (postData) => {
    return ajaxinstance.get('/get-novel', postData)
  }

  customer.getNovelDetails = (postData) => {
    return ajaxinstance.get('/get-novel-details', {params:postData})
  }

  customer.setNovel = (postData) => {
    return ajaxinstance.post('/set-novel', postData)
  }

  customer.delNovel = (postData) => {
  return ajaxinstance.post('/del-novel', postData)
}

  return customer
}

export default novel
